<?php
namespace Home\Model;
use Think\Model;
class GoodsModel extends Model {
public function getByFilter($filed,$where)
    {
    $filter=array_map(array($this->db,'escapeString'),I('get.'));
    $cid=$where['cid'];
    $goodslist=$this->field($field)->where($where)->select();
    return $goodslist;
    }
}

